package com.xinzhi.domain.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单表
 */

@Data

public class Orders {

    private Integer id;                //订单id
    private String orderNum;           //订单号
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private String orderTime;          //订单创建时间
    private Integer state;             //订单状态 0未付款  1待取货  2待评价 9已过期
    private Integer userId;            //用户id
    private BigDecimal total;          //小计
    private Integer num;               //商品数量
    private Integer manId;             //自提人信息
    private Integer placeId;           //自提点信息id
    private String alipayNo;           //阿里订单号
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private String payTime;              //阿里支付时间
}
